<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            border: 1px solid red
        }

        span {
            width: 100px;
            height: 100px;
            border: 1px solid blue;
            /*display: inline-block;*/
            display: none;/*让元素隐藏*/
        }
        #a1{
            background-color: #0aa1ed;
            width: 132px;
            height: 40px;
            display: block;
            text-align: center;
            line-height: 40px;
            color: #fff;
            font-size: 20px;
            text-decoration: none;
            border-radius: 4px;
        }
        #a2{
            background-color: #e89aa8;
            /*border-radius: 2px;*/
            width: 132px;
            height: 40px;
            display: block;
            text-align: center;
            line-height: 40px;
            color: #fff;
            font-size: 20px;
            text-decoration: none;
            border-radius: 2px;
        }
    </style>
</head>
<body>
<a href="" id="a1">查看详情</a>
<a href="" id="a2">查看详情</a>
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
</body>
</html>